//
//  WBMessageController.swift
//  WBTest
//
//  Created by pengZY on 2017/9/25.
//  Copyright © 2017年 zhang. All rights reserved.
//

import UIKit
import Alamofire
class WBMessageController: WBBaseController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
  let btn =  UIButton(frame: CGRect(x: 100, y: 100, width: 200, height: 100))
        
        btn.backgroundColor = UIColor.red;
        
        self.view.addSubview(btn)
        
        btn.addTarget(self, action: #selector(didckick), for: .touchUpInside)
        
        //2289200215  appkey
        Alamofire.request("https://api.weibo.com/oauth2/authorize", method: .post, parameters: nil, encoding: URLEncoding.default, headers: nil).responseJSON { (response) in
            print(response.value!)

        }
      
    }

    @objc func didckick(){
        
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
